package com.goldgov.kduck.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

@ConfigurationProperties(prefix = "gateway")
@Validated
public class GatewayProperties {
    @NotNull
    private String authenticationServerUrl;
    @NotNull
    private String resourceUrl;

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    public String getAuthenticationServerUrl() {
        return authenticationServerUrl;
    }

    public void setAuthenticationServerUrl(String authenticationServerUrl) {
        this.authenticationServerUrl = authenticationServerUrl;
    }
}
